import request from "@/utils/request";

let api = {};

api.getActivity = (data) => {
    return request({
        url: "noLogin/getActivityPage",
        method: "post",
        params: data,
    })
}
api.checkWithDraw = (data) => {
    return request({
        url: "noLogin/checkWithDraw",
        method: "post",
        params: data,
    })
}
api.checkCancel = (data) => {
    return request({
        url: "noLogin/checkCancel",
        method: "post",
        params: data,
    })
}
api.getWithDrawList = (data) => {
    return request({
        url: "noLogin/getWithDrawList",
        method: "post",
        params: data,
    })
}

api.saveDiscountCode = (data) => {
    return request({
        url: "noLogin/saveDiscountCode",
        method: "post",
        params: data,
    })
}

api.removeDiscountCode = (data) => {
    return request({
        url: "noLogin/removeDiscountCode",
        method: "post",
        params: data,
    })
}

api.getDiscountCodeList = (data) => {
    return request({
        url: "noLogin/getDiscountCodeList",
        method: "post",
        params: data,
    })
}

api.getUserDiscount = (data) => {
    return request({
        url: "noLogin/getUserDiscount",
        method: "post",
        params: data,
    })
}

api.saveOrUpdateActivity = (data) => {
    return request({
        url: "noLogin/saveOrUpdate",
        method: "post",
        params: data
    })
}
api.removeActivity = (data) => {
    return request({
        url: "noLogin/removeByIds",
        method: "delete",
        params: data
    })
}

api.getUserAward = data => {
    return request({
        url: "noLogin/getUserAward",
        method: "post",
        data: data
    });
}
api.getSwiper = (data) => {
    return request({
        url: "back/banner/findall",
        method: "get",
        params: data,
    });
};
api.getSingleSwiper = (data) => {
    return request({
        url: "back/selectByp_id",
        method: "post",
        params: data,
    });
};
api.updateSwiper = (data) => {
    return request({
        url: "back/banner/update",
        method: "post",
        params: data,
    });
};
api.addSwiper = (data) => {
    return request({
        url: "back/banner/add",
        method: "post",
        params: data,
    });
};
api.deleteSwiper = (data) => {
    return request({
        url: "back/banner/delete",
        method: "post",
        params: data,
    });
};
api.getcompany = (data) => {
    return request({
        url: "admin/coutUser",
        method: "get",
        params: data,
    });
};
api.updatecompany = (data) => {
    return request({
        url: "admin/updateSysNo",
        method: "post",
        data: data,
    });
};
api.truepeople = data => {
    return request({
        url: "admin/getIsture",
        method: "get",
        data: data
    });
};
api.change_audit_state = data => {
    return request({
        url: "admin/updateIsture",
        method: "post",
        data: data
    });
};
api.gettypelist = data => {
    return request({
        url: "/back/type/findLimitAll",
        method: "get",
        data: data
    });
};
api.addtypelist = data => {
    return request({
        url: "/back/type/add",
        method: "post",
        data: data
    });
};
api.updatetypelist = data => {
    return request({
        url: "/back/type/update",
        method: "post",
        data: data
    });
};
api.deletetypelist = data => {
    return request({
        url: "/back/type/delete",
        method: "post",
        data: data
    });
};
api.getGoods = data => {
    return request({
        url: "/back/mall/findLimitAll",
        method: "get",
        data: data
    });
};
api.addGoods = data => {
    return request({
        url: "/back/mall/add",
        method: "post",
        data: data
    });
};
api.updateGoods = data => {
    return request({
        url: "/back/mall/update",
        method: "post",
        data: data
    });
};
api.deleteGoods = data => {
    return request({
        url: "/back/mall/delete",
        method: "post",
        data: data
    });
};
api.getSingleGoods = data => {
    return request({
        url: "/back/mall/findById",
        method: "get",
        data: data
    });
};
api.deleteGuige= data => {
    return request({
        url: "/back/mall/deletespecification",
        method: "post",
        data: data
    });
};
api.deleteGuigesignle= data => {
    return request({
        url: "back/mall/deleteById",
        method: "post",
        data: data
    });
};
api.upgoods= data => {
    return request({
        url: "back/mall/updatestate",
        method: "post",
        data: data
    });
};
api.getlist= data => {
    return request({
        url: "back/box/findLimitAllPostcard",
        method: "post",
        data: data
    });
};
api.getlist11= data => {
    return request({
        url: "back/box/findLimitAll",
        method: "post",
        data: data
    });
};
api.add_list= data => {
    return request({
        url: "back/box/add",
        method: "post",
        data: data
    });
};
api.updatelist= data => {
    return request({
        url: "back/box/update",
        method: "post",
        data: data
    });
};
api.delete_list= data => {
    return request({
        url: "back/box/delete",
        method: "post",
        data: data
    });
};
api.uplist= data => {
    return request({
        url: "back/box/updatedate",
        method: "post",
        data: data
    });
};
api.getlistmini= data => {
    return request({
        url: "/back/etui/findALLByBoxId",
        method: "get",
        data: data
    });
};
api.getlistmini11= data => {
    return request({
        url: "/back/box/findLimitAll",
        method: "get",
        data: data
    });
};
api.addlistmini= data => {
    return request({
        url: "/back/etui/add",
        method: "post",
        data: data
    });
};
api.getlistminione= data => {
    return request({
        url: "/back/postcard/findALLByBoxIdpostcard",
        method: "get",
        data: data
    });
};
api.addlistminione= data => {
    return request({
        url: "/back/postcard/add",
        method: "post",
        data: data
    });
};
api.delete_listminione= data => {
    return request({
        url: "/back/postcard/delete",
        method: "post",
        data: data
    });
};
api.changemininumber= data => {
    return request({
        url: "/back/postcard/update",
        method: "post",
        data: data
    });
};
api.changemanghenumber= data => {
    return request({
        url: "/back/etui/update",
        method: "post",
        data: data
    });
};
api.delete_listmangheone= data => {
    return request({
        url: "/back/etui/delete",
        method: "post",
        data: data
    });
};
api.changemininrank= data => {
    return request({
        url: "/back/postcard/update",
        method: "post",
        data: data
    });
};
api.getcupponlist= data => {
    return request({
        url: "/back/discounts/findLimit",
        method: "post",
        data: data
    });
};
api.addcuppon= data => {
    return request({
        url: "/back/discounts/add",
        method: "post",
        data: data
    });
};
api.deletecuppon= data => {
    return request({
        url: "/back/discounts/delete",
        method: "post",
        data: data
    });
};
api.updatecuppon= data => {
    return request({
        url: "/back/discounts/update",
        method: "post",
        data: data
    });
};
api.getactivelist= data => {
    return request({
        url: "/back/take/findLimit",
        method: "post",
        data: data
    });
};
api.updateactivelist= data => {
    return request({
        url: "/back/task/update",
        method: "post",
        data: data
    });
};
api.deleteactivelist= data => {
    return request({
        url: "/back/task/delete",
        method: "post",
        data: data
    });
};
api.addactivelist= data => {
    return request({
        url: "/back/task/add",
        method: "post",
        data: data
    });
};
api.getgoodsorder= data => {
    return request({
        url: "/back/orders/findLimit",
        method: "post",
        data: data
    });
};
api.getsorder= data => {
    return request({
        url: "/back/award/findAll",
        method: "post",
        data: data
    });
};

api.addWuliu= data => {
    return request({
        url: "/back/award/affirm",
        method: "post",
        data: data
    });
};

api.sureorder= data => {
    return request({
        url: "/wxPay/refund",
        method: "post",
        data: data
    });
};
api.nosureorder= data => {
    return request({
        url: "/back/award/refuse",
        method: "post",
        data: data
    });
};



api.updatemanghelist= data => {
    return request({
        url: "/back/series/update",
        method: "post",
        data: data
    });
};

api.deletemanghelist= data => {
    return request({
        url: "/back/series/delete",
        method: "post",
        data: data
    });
};

api.addmanghelist= data => {
    return request({
        url: "/back/series/add",
        method: "post",
        data: data
    });
};

api.getmanghelist= data => {
    return request({
        url: "/back/series/findLimit",
        method: "post",
        data: data
    });
};
api.upmanghetype= data => {
    return request({
        url: "/back/series/updateState",
        method: "post",
        data: data
    });
};


api.change_upyc= data => {
    return request({
        url: "/back/mall/updateHide",
        method: "post",
        data: data
    });
};

export default api;